<template>
  <div class="dashboard-container">
    <el-card>
      <el-row>
        <el-col span="12">
          <div class="title-container">
            <h3 class="title">饼状图</h3>
          </div>
          <PieChart></PieChart>
        </el-col>
        <el-col span="12">
          <div class="title-container">
            <h3 class="title">雷达图</h3>
          </div>
          <RadarChart></RadarChart>
        </el-col>
      </el-row>
    </el-card>
  </div>
</template>

<script>
import PieChart from '@/views/dashboard/charts/PieChart.vue'
import RadarChart from '@/views/dashboard/charts/RadarChart.vue'

export default {
  name: 'Dashboard',
  components: { RadarChart, PieChart }
}
</script>

<style lang="scss" scoped>
$dark_gray:#889aa4;

.dashboard {
  &-container {
    margin: 30px;
  }
  &-text {
    font-size: 30px;
    line-height: 46px;
  }
}

.title-container {
  position: relative;

  .title {
    font-size: 26px;
    color: $dark_gray;
    margin: 0 auto 40px auto;
    text-align: center;
    font-weight: bold;
  }
}
</style>
